
    /* ===== RESET & BASE STYLES ===== */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
   body {
        font-family: 'Segoe UI', Arial, sans-serif;
        background: #fff;
        margin: 0;
        color: #222;
    }
    
    a {
        color: #2b7de9;
        text-decoration: none;
    }
    
    a:hover {
        text-decoration: underline;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
     /* ===== HEADER ===== */
    .header {
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav {
        display: flex;
        gap: 25px;
        align-items: center;
    }
    
    .nav a {
        color: var(--text-color);
        font-weight: 500;
    }
    
    .nav a:hover {
        color: var(--primary-color);
    }
    
    /* ===== MAIN LAYOUT ===== */
    .app-container {
        display: flex;
        min-height: calc(100vh - 70px);
    }

    /*left-sidebar*/
    .left-sidebar {
        width: 200px;
background: #fff;
border-radius: 8px;
padding: 20px;
height: fit-content;

position: sticky;
top: 80px; /* distance from top before it "sticks" */
align-self: flex-start; /* for flex layouts */

}

.left-sidebar-title {
font-size: 1.1rem;
font-weight: bold;
margin-bottom: 15px;
border-bottom: 1px solid #eee;
padding-bottom: 8px;
}

.reading-progress-container {
height: 6px;
background: #f0f0f0;
border-radius: 3px;
margin-bottom: 10px;
overflow: hidden;
}

.reading-progress-bar {
height: 100%;
width: 0%;
background: #2b7de9;
transition: width 0.2s ease;
}

.estimated-time {
font-size: 0.95rem;
color: #555;
}

    
    /* ===== SIDEBAR  modal ===== */

 /* Modal overlay background */
.sidebar-modal {
display: none; 
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
z-index: 2000; 
align-items: center;
justify-content: center;
}

/* The actual modal content (your old sidebar) */
.sidebar-modal .sidebar {
position: relative;
width: 300px;
max-width: 95%;
background: #fff;
border-radius: 8px;
padding: 20px;
height: auto;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
transform: none; /* no sliding */
}

/* Close button inside modal */
.sidebar-modal .close-btn {
position: absolute;
top: 10px;
right: 10px;
font-size: 1.2rem;
cursor: pointer;
border: none;
background: none;
color: #333;
}

.sidebar-modal.active {
display: flex;
}

    
    /* ===== MAIN CONTENT ===== */
 
    
     /* ===== RIGHT SIDEBAR ===== */
    .right-sidebar {
        width: 280px;
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        height: fit-content;
    }
    
    .right-sidebar-title {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .right-sidebar-content {
        margin-top: 15px;
    }
    
    .right-sidebar-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .right-sidebar-item:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
    
    /* ===== CUSTOM NAV BAR ===== */
    .cus-nav-bar {
        background: #fff;
        border-radius: 8px;
       
        padding: 15px 20px;
        margin: 20px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .cus-nav-links {
        display: flex;
        gap: 15px;
    }
    
    .cus-nav-link {
        padding: 8px 12px;
        border-radius: 4px;
        transition: background 0.2s;
    }
    
    .cus-nav-link:hover {
        background: #e9f1fb;
    }
    
    .cus-nav-link.active {
        background: #2b7de9;
        color: white;
    }
    
    .cus-nav-actions {
        display: flex;
        gap: 10px;
    }
    /* ===== BUTTONS ===== */
    .btn {
        display: inline-block;
        background: transparent;
        color: #131212;
        border: none;
        
        padding: 10px 22px;
        font-size: 1em;
        cursor: pointer;
        transition: background 0.18s;
    }
    
    .btn:hover {
        background: #1a5bb8;
    }
    
    .btn-secondary {
        background: #e9ecef;
        color: #2b7de9;
    }
    
    .btn-secondary:hover {
        background: #d0d7de;
    }
    
    .btn-sm {
        padding: 6px 14px;
        font-size: 0.95em;
    }
    
    .btn-outline {
        background: transparent;
       
        color: #2b7de9;
    }
    
    .btn-outline:hover {
        background: #e9f1fb;
    }
    
    /* ===== ARTICLE CARDS ===== */
    .article-card {
        background: #fff;
        border-radius: 0px;
        border-bottom: 1px solid #2d29298b;
        margin-bottom: 32px;
        padding: 24px;
        transition: transform 0.2s;
    }
    
    .article-card:hover {
        transform: translateY(-4px);
    }
    
    .article-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    .article-meta {
        color: #6c757d;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .article-content {
        margin: 20px 0;
    }
    
    .article-content img {
        margin: 10px 0;
    }
    
    /* ===== SEARCH BAR ===== */
    .search-container {
        margin-bottom: 24px;
        display: flex;
        gap: 8px;
    }
    
    .search-input {
        flex: 1;
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        font-size: 1em;
    }
    
    .search-results {
        position: absolute;
        background: white;
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid #888;
       
        border-radius: 4px;
        z-index: 10;
        display: none;
    }
    
    .search-item {
        padding: 10px;
        cursor: pointer;
    }
    
    .search-item:hover {
        background: #f8f9fa;
    }
    
    /* ===== EDITOR ===== */
    .article-editor {
        display: none;
        margin-bottom: 30px;
    }
    
    .toolbox {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 20px;
    }
    
    .toolbox-item {
        display: inline-block;
        padding: 5px 10px;
        margin: 5px;
        background: #e9ecef;
        border-radius: 3px;
        cursor: move;
    }
    
    .drag-drop-area {
        border: 2px dashed #ddd;
        padding: 20px;
        text-align: center;
        margin-bottom: 20px;
        min-height: 100px;
    }
    
    /* ===== MODALS ===== */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        background: white;
        border-radius: 8px;
        padding: 20px;
        width: 90%;
        max-width: 600px;
    }
    
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .modal-title {
        font-size: 1.25rem;
        font-weight: bold;
    }
    
    .modal-body {
        margin-bottom: 15px;
    }
    
    .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    
    /* ===== COMMENTS ===== */
    .comments-section {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .comment {
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .comment-header {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }
    
    .comment-username {
        font-weight: bold;
        margin-bottom: 0;
    }
    
    .comment-date {
        color: #6c757d;
        font-size: 0.8rem;
    }
    
    .comment-content {
        margin-bottom: 10px;
    }
    
    .replies {
        margin-left: 30px;
        margin-top: 15px;
    }
    
    /* ===== ALERTS ===== */
    .alert {
        padding: 10px 15px;
        border-radius: 4px;
        margin-bottom: 15px;
    }
    
    .alert-info {
        background: #e7f5ff;
        color: #1864ab;
    }
    
    .alert-warning {
        background: #fff3bf;
        color: #e67700;
    }
    
    .alert-danger {
        background: #ffc9c9;
        color: #c92a2a;
    }
    
    /* ===== TABLES ===== */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }
    
    th, td {
        padding: 8px;
        border: 1px solid #ddd;
    }
    
    th {
        background: #f8f9fa;
    }
    
    /* ===== CODE BLOCKS ===== */
    pre {
        background: #f8f9fa;
        padding: 5px;
        border-radius: 4px;
        overflow-x: auto;
    }
    
    code {
        font-family: monospace;
    }
    pre code {
     font-size: 0.85em; 
     line-height: 1.4; 
    }
    .copy-button {
      font-size: 0.75em; 
      padding: 0.2em 0.5em; 
    }
    /* ===== FORMULA ===== */
    .formula-editor {
        padding: 10px;
        background: #f8f9fa;
        border-radius: 4px;
        margin: 10px 0;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        background: #222;
        color: #fff;
        padding: 60px 0 24px;
        margin-top: 60px;
    }
    
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .footer-col {
        flex: 1;
        min-width: 200px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 15px;
    }
    
    .footer-link {
        display: block;
        color: #aaa;
        margin-bottom: 8px;
    }
    
    .footer-link:hover {
        color: #fff;
    }
    
    .footer-social {
        display: flex;
        gap: 15px;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #444;
        margin-top: 30px;
    }
    
    /* ===== UTILITY CLASSES ===== */
    .d-flex {
        display: flex;
    }
    
    .justify-content-between {
        justify-content: space-between;
    }
    
    .justify-content-end {
        justify-content: flex-end;
    }
    
    .align-items-center {
        align-items: center;
    }
    
    .mb-1 { margin-bottom: 0.25rem; }
    .mb-2 { margin-bottom: 0.5rem; }
    .mb-3 { margin-bottom: 1rem; }
    .mb-4 { margin-bottom: 1.5rem; }
    .mb-5 { margin-bottom: 3rem; }
    
    .mt-1 { margin-top: 0.25rem; }
    .mt-2 { margin-top: 0.5rem; }
    .mt-3 { margin-top: 1rem; }
    .mt-4 { margin-top: 1.5rem; }
    .mt-5 { margin-top: 3rem; }
    
    .me-2 { margin-right: 0.5rem; }
    .ms-2 { margin-left: 0.5rem; }
    
    .small {
        font-size: 0.875em;
    }
    
    .text-muted {
        color: #6c757d;
    }
    
    .text-center {
        text-align: center;
    }
  /* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 991px) {
.sidebar {
    width: 200px;
    padding: 16px 8px;
}

.main-content {
    margin-left: 0;
    padding: 16px;
}

.sub-container {
    flex-direction: column;
}

#articlesDisplay, 
#rightSidebar {
    flex: 1 1 100%;
    width: 100%;
    padding-left: 0;
}

.right-sidebar {
    margin-top: 30px;
    width: 100%;
}

.article-preview {
    width: 100%;
}

.cus-nav-links {
    flex-wrap: wrap;
    gap: 8px;
}

.cus-nav-link {
    padding: 6px 8px;
    font-size: 0.9em;
}

.cus-nav-actions {
    margin-top: 10px;
}
}

@media (max-width: 768px) {
 .header {
    padding: 5px 10px; 
    flex-direction: column; 
    align-items: flex-start; 
    position: sticky;
    margin-bottom: 10px;
}

.logo {
    font-size: 1.2rem; 
}

.nav {
    gap: 15px; 
    flex-wrap: wrap;
    margin-top: 1px; 
}

.nav a {
    font-size: 0.9rem; 
}

.main-content {
    padding: 16px 10px;
}

.article-title {
    font-size: 1.5rem;
}

.article-body {
    font-size: 1rem;
}

.article-card {
    padding: 16px;
}

.footer-col {
    min-width: 50%;
}

.modal-content {
    width: 95%;
}

.recent-posts {
    border-left: none;
    padding-left: 0;
    margin-top: 30px;
}

.app-container {
    flex-direction: column;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.slide-out {
    transform: translateX(-100%);
}

.sidebar.active {
    transform: translateX(0);
}

.main-content.sidebar-hidden {
    margin-left: 0;
}


}

@media (max-width: 576px) {
.header {
    padding: 10px;
}

.main-content {
    padding: 16px 8px;
}

.footer-col {
    min-width: 100%;
}

.article-title {
    font-size: 1.3rem;
    margin: 16px 0 6px 0;
}

.article-meta {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.article-card {
    padding: 12px;
}

.search-container {
    flex-direction: column;
}

.search-input {
    width: 100%;
    margin-bottom: 8px;
}

#searchButton {
    width: 100%;
}

.cus-nav-bar {
    flex-direction: column;
    align-items: flex-start;
}

.cus-nav-links {
    margin-bottom: 10px;
}

.cus-nav-actions {
    width: 100%;
    justify-content: space-between;
}

.modal-content {
    padding: 15px;
}

.comment-editor {
    min-height: 150px;
}

.recent-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.article-preview-title {
    font-size: 1.1rem;
}

.article-preview-snippet {
    font-size: 0.85em;
}

pre code {
    font-size: 0.8em;
}

.copy-button {
    font-size: 0.7em;
    right: 15px;
}
}

/* Special handling for very small screens */
@media (max-width: 400px) {
.header {
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    margin-bottom: 8px;
}

.nav {
    gap: 8px;
}

.article-title {
    font-size: 1.2rem;
}

.article-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-card {
    padding: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.modal-content {
    width: 98%;
    padding: 10px;
}

.formula-editor {
    padding: 8px;
    font-size: 0.9em;
}

.right-sidebar-title {
    font-size: 1.1rem;
}
}
/* ===== CUSTOM STYLES new ===== */
    .sub-container {
display: flex;
}

#articlesDisplay {
flex: 3;
}

#rightSidebar {
flex: 1;
padding-left: 10px;
}
#otherArticlesPreview {
margin-top: 40px;
gap: 20px;
display: flex;
flex-wrap: wrap;
}

.article-preview {
background: #fff;
border-radius: 8px;
padding: 16px;
width: 250px;
cursor: pointer;
transition: transform 0.2s;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.article-preview:hover {
transform: translateY(-4px);
}

.article-preview-title {
font-weight: bold;
margin-bottom: 10px;
}

.article-preview-snippet {
font-size: 0.9em;
color: #666;
}

/*______________________________cccc________________________________________*/

    .header {
        background: #fff;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        padding: 0 30px;
        height: 64px;
    }
    .logo {
        font-size: 1.1rem;
        color: #3ca5e7;
        font-weight: bold;
        letter-spacing: -1px;
        margin-right: 30px;
        font-family: 'Segoe UI', Arial, sans-serif;
    }
    .nav {
        display: flex;
        gap: 22px;
        font-size: 1rem;
    }
    .nav a {
        text-decoration: none;
        color: #444;
        font-weight: 500;
        transition: color 0.2s;
    }
    .nav a:hover {
        color: #e74c3c;
    }
   
    .main-content {
        flex: 3;
        background: #fff;
    }
    .breadcrumbs {
        font-size: 0.92rem;
        color: #888;
        margin-bottom: 12px;
    }
    .breadcrumbs a {
        color: #888;
        text-decoration: none;
    }
    .ad-banner {
        background: #f4f7fa;
        border: 1px solid #e0e0e0;
        padding: 22px 0;
        margin-bottom: 18px;
        text-align: center;
    }
    .ad-banner img {
        max-height: 55px;
        vertical-align: middle;
    }
    .article-title {
        font-size: 2rem;
        font-weight: bold;
        margin: 24px 0 8px 0;
        line-height: 1.2;
    }
    .article-meta {
        color: #888;
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    .article-image {
        width: 100%;
        max-width: 520px;
        display: block;
        margin: 0 auto 25px auto;
        border-radius: 8px;
        border: 1px solid #eaeaea;
    }
    .article-body {
        font-size: 1.08rem;
        line-height: 1.7;
    }
    .article-body h2, .article-body h3 {
        color: #5a5050;
        margin-top: 28px;
        font-family: 'Times New Roman', Times, serif;
    }
    .recent-posts {
        flex: 1.2;
        background: #fafbfc;
        border-left: 1px solid #eee;
        padding-left: 24px;
        min-width: 220px;
        
    }
    .recent-title {
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 16px;
        margin-top: 6px;
    }
    .recent-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .recent-list li {
        margin-bottom: 14px;
        font-size: 1.02rem;
    }
    .recent-list a {
        color: #222;
        text-decoration: none;
        border-bottom: 1px dotted #e74c3c;
        transition: color 0.2s;
    }
    .recent-list a:hover {
        color: #e74c3c;
    }
    @media (max-width: 900px) {
        .header {
            flex-direction: column;
        }
        .recent-posts {
            border-left: none;
            padding-left: 0;
            margin-top: 30px;
        }
    }
    /*__________________________________vvv__________________________________*/
.sidebar-articles {
padding: 15px;
border-top: 1px solid #eee;
margin-top: 15px;
}

.sidebar-articles h4 {
font-size: 1.1rem;
margin-bottom: 10px;
color: #333;
}

#userArticlesList {
list-style: none;
padding: 0;
margin: 0;
}

#userArticlesList li {
padding: 8px 0;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}

#userArticlesList li:hover {
background-color: #f8f9fa;
}

#userArticlesList .edit-btn {
background: none;
border: none;
color: #6c757d;
cursor: pointer;
font-size: 0.9rem;
}

#userArticlesList .edit-btn:hover {
color: #0d6efd;
}
.editable-content {
min-height: 20px;
padding: 5px;
border: 1px dashed #ccc;
margin: 5px 0;
}

.editable-content:focus {
border-color: #0d6efd;
outline: none;
}
    /* ...existing code... */
body.dark-mode,
body.dark-mode .header,
body.dark-mode .main-content,
body.dark-mode .sidebar,
body.dark-mode .right-sidebar,
body.dark-mode .left-sidebar,
body.dark-mode .footer,
body.dark-mode .recent-posts,
body.dark-mode .article-card,
body.dark-mode .article-preview,
body.dark-mode .modal-content,
body.dark-mode .toolbox,
body.dark-mode .drag-drop-area,
body.dark-mode .cus-nav-bar,
body.dark-mode .ad-banner,
body.dark-mode .search-results,
body.dark-mode .comment,
body.dark-mode .formula-editor {
background: #111 !important;
color: #fff !important;
border-color: #222 !important;
}

body.dark-mode .sidebar-nav button,
body.dark-mode .sidebar-nav a,
body.dark-mode .cus-nav-link,
body.dark-mode .footer-link,
body.dark-mode .nav a {
color: #fff !important;
}

body.dark-mode .sidebar-nav button:hover,
body.dark-mode .sidebar-nav a:hover,
body.dark-mode .cus-nav-link:hover,
body.dark-mode .footer-link:hover,
body.dark-mode .nav a:hover {
background: #222 !important;
color: #ffd700 !important;
}

body.dark-mode .btn,
body.dark-mode .btn-secondary,
body.dark-mode .btn-outline {
background: transparent !important;
color: #fff !important;
border: none !important;
}

body.dark-mode .btn:hover,
body.dark-mode .btn-secondary:hover,
body.dark-mode .btn-outline:hover {
background: #333 !important;
color: #ffd700 !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
background: #222 !important;
color: #fff !important;
border: 1px solid #444 !important;
}

body.dark-mode .article-meta,
body.dark-mode .text-muted,
body.dark-mode .recent-list a,
body.dark-mode .small {
color: #bbb !important;
}

body.dark-mode .search-results,
body.dark-mode .modal-content {
background: #181818 !important;
color: #fff !important;
}

body.dark-mode .article-content img,
body.dark-mode .article-image {
filter: brightness(0.85) contrast(1.1);
background: #222 !important;
}

body.dark-mode .alert-info,
body.dark-mode .alert-warning,
body.dark-mode .alert-danger {
background: #222 !important;
color: #ffd700 !important;
}

body.dark-mode .cus-nav-link.active {
background: #ffd700 !important;
color: #222 !important;
}

body.dark-mode .footer-bottom {
border-top: 1px solid #333 !important;
color: #bbb !important;
}

body.dark-mode .toolbox-item {
background: #222 !important;
color: #fff !important;
}

body.dark-mode .drag-drop-area {
border-color: #444 !important;
}

body.dark-mode .modal {
background: rgba(0,0,0,0.85) !important;
}

body.dark-mode pre,
body.dark-mode code {
background: #181818 !important;
color: #fff !important;
border-color: #222 !important;
}

pre code.language-php {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px; 
max-width: 100%;   
white-space: pre;  
box-shadow: inset 1px 1px 15px  rgba(255, 255, 255, 0.5); 
}


pre code.language-php .token.variable {
color: #8be9fd; 
}

pre code.language-php .token.string {
color: #f1fa8c; 
}

pre code.language-php .token.keyword {
color: #ff79c6; 
}

pre code.language-php .token.punctuation {
color: #ffb86c; 
}

pre code.language-php .token.function {
color: #50fa7b;
}

pre code.language-php .token.comment {
color: #6272a4; 
}

pre code.language-php .token.operator {
color: #ff79c6; 
}

pre code.language-php .token.number {
color: #bd93f9; 
}
pre code.language-php .token.comment {
color: #6272a4 !important;  
background: transparent !important;  
}



pre code.language-html {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px; 
max-width: 100%;   
white-space: pre;  
box-shadow: inset 1px 1px 15px  rgba(255, 255, 255, 0.5); 
}

pre code.language-html .token.tag {
color: #ff79c6; 
}

pre code.language-html .token.attr-name {
color: #50fa7b; 
}

pre code.language-html .token.attr-value {
color: #f1fa8c;
}

pre code.language-html .token.punctuation {
color: #ffb86c; 
}

pre code.language-html .token.comment {
color: #6272a4 !important; 
background: transparent !important;
}

pre code.language-html .token.doctype,
pre code.language-html .token.prolog {
color: #8be9fd; 
}

pre code.language-html .token.string {
color: #f1fa8c; 
}

pre code.language-python {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px;
max-width: 100%;
white-space: pre;
box-shadow: inset 1px 1px 15px rgba(255, 255, 255, 0.5);
}

pre code.language-python .token.keyword {
color: #ff79c6; 
}

pre code.language-python .token.function {
color: #50fa7b; 
}

pre code.language-python .token.string {
color: #f1fa8c; 
}

pre code.language-python .token.comment {
color: #6272a4 !important; 
background: transparent !important;
}

pre code.language-python .token.number {
color: #bd93f9; 
}

pre code.language-python .token.operator {
color: #ff79c6; 
}

pre code.language-python .token.punctuation {
color: #ffb86c; 
}

pre code.language-python .token.builtin {
color: #8be9fd; 
}

pre code.language-python .token.variable {
color: #f8f8f2; 
}

pre code.language-javascript {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px;
max-width: 100%;
white-space: pre;
box-shadow: inset 1px 1px 15px rgba(255, 255, 255, 0.5);
}

pre code.language-javascript .token.keyword {
color: #ff79c6; 
}

pre code.language-javascript .token.function {
color: #50fa7b;
}

pre code.language-javascript .token.string {
color: #f1fa8c; 
}

pre code.language-javascript .token.comment {
color: #6272a4 !important;
background: transparent !important;
}

pre code.language-javascript .token.number {
color: #bd93f9; 
}

pre code.language-javascript .token.operator {
color: #ff79c6; 
}

pre code.language-javascript .token.punctuation {
color: #ffb86c; 
}

pre code.language-javascript .token.boolean {
color: #bd93f9; 
}

pre code.language-javascript .token.class-name {
color: #8be9fd; 
}

pre code.language-javascript .token.console {
color: #8be9fd; 
}

pre code.language-javascript .token.property {
color: #f8f8f2; 
}

pre code.language-javascript .token.template-string {
color: #f1fa8c; 
}

pre code.language-css {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px;
max-width: 100%;
white-space: pre;
box-shadow: inset 1px 1px 15px rgba(255, 255, 255, 0.5);
}

pre code.language-css .token.selector {
color: #50fa7b; 
}

pre code.language-css .token.property {
color: #8be9fd; 
}

pre code.language-css .token.string {
color: #f1fa8c; 
}

pre code.language-css .token.comment {
color: #6272a4 !important; 
background: transparent !important;
}

pre code.language-css .token.number {
color: #bd93f9; 
}

pre code.language-css .token.unit {
color: #bd93f9; 
}

pre code.language-css .token.punctuation {
color: #ffb86c;
}

pre code.language-css .token.function {
color: #ff79c6; 
}

pre code.language-css .token.hexcode {
color: #f1fa8c; 
}

pre code.language-css .token.atrule {
color: #ff79c6; 
}

pre code.language-css .token.keyword {
color: #ff79c6; 
}

pre code.language-css .token.important {
color: #ff5555; 
font-weight: bold;
}


pre code.language-c {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px;
max-width: 100%;
white-space: pre;
box-shadow: inset 1px 1px 15px rgba(255, 255, 255, 0.5);
}

pre code.language-c .token.keyword {
color: #ff79c6; 
}

pre code.language-c .token.function {
color: #50fa7b; 
}

pre code.language-c .token.string {
color: #f1fa8c; 
}

pre code.language-c .token.comment {
color: #6272a4 !important; 
background: transparent !important;
}

pre code.language-c .token.number {
color: #bd93f9; 
}

pre code.language-c .token.operator {
color: #ff79c6; 
}

pre code.language-c .token.punctuation {
color: #ffb86c; 
}

pre code.language-c .token.macro {
color: #8be9fd; 
}

pre code.language-c .token.directive {
color: #8be9fd;
}

pre code.language-c .token.type {
color: #8be9fd; 
}

pre code.language-c .token.variable {
color: #f8f8f2; 
}


pre code.language-cpp {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px;
max-width: 100%;
white-space: pre;
box-shadow: inset 1px 1px 15px rgba(255, 255, 255, 0.5);
}

pre code.language-cpp .token.class-name {
color: #8be9fd; 
}

pre code.language-cpp .token.namespace {
color: #ff79c6; 
}

pre code.language-cpp .token.template-punctuation {
color: #ffb86c; 
}

pre code.language-cpp .token.keyword.operator {
color: #ff79c6; 
}

pre code.language-cpp .token.boolean {
color: #bd93f9; 
}

pre code.language-java {
color: #f8f8f2;
background: #2f2f2f;
padding: 1em;
border-radius: 4px;
display: block;
overflow-x: auto;
overflow-y: auto;
max-height: 800px;
max-width: 100%;
white-space: pre;
box-shadow: inset 1px 1px 15px rgba(255, 255, 255, 0.5);
}

pre code.language-java .token.keyword {
color: #ff79c6; 
}

pre code.language-java .token.class-name {
color: #8be9fd; 
}

pre code.language-java .token.function {
color: #50fa7b; 
}

pre code.language-java .token.string {
color: #f1fa8c; 
}

pre code.language-java .token.comment {
color: #6272a4 !important; 
background: transparent !important;
}

pre code.language-java .token.number {
color: #bd93f9; 
}

pre code.language-java .token.annotation {
color: #ff79c6; 
}

pre code.language-java .token.operator {
color: #ff79c6; 
}

pre code.language-java .token.punctuation {
color: #ffb86c; 
}

pre code.language-java .token.import {
color: #8be9fd; 
}

pre code.language-java .token.constant {
color: #bd93f9; 
}

.upload-progress {
margin-top: 15px;
padding: 10px;
background-color: #f8f9fa;
border-radius: 4px;
}

.progress-bar {
height: 5px;
background-color: #007bff;
width: 0%;
transition: width 0.3s;
margin-bottom: 5px;
}

.progress-text {
font-size: 0.8em;
color: #6c757d;
}


.toc-list {
list-style: none;
padding-left: 0;
margin: 0;
}

.toc-list li {
margin-bottom: 0.5rem;
line-height: 1.3;
border-left: 2px solid #eee;
padding-left: 0.5rem;
}

.toc-list li:hover {
border-left-color: #007bff;
}

.toc-item {
color: #333;
text-decoration: none;
display: block;
padding: 0.25rem 0;
transition: all 0.2s;
font-size: 0.9em;
}

.toc-item:hover {
color: #007bff;
transform: translateX(3px);
}

.toc-level-2 {
font-weight: 600;
padding-left: 0;
}

.toc-level-3 {
font-weight: 500;
padding-left: 1rem;
}

.toc-level-4 {
font-weight: 400;
padding-left: 2rem;
}

/* Icons for different content types */
.toc-item[href*="#section-"]::before {
margin-right: 0.5em;
}

.toc-item[href*="#section-"]:contains("¶")::before {
content: "¶";
}

.toc-item[href*="#section-"]:contains("🖼️")::before {
content: "🖼️";
}

.toc-item[href*="#section-"]:contains("📊")::before {
content: "📊";
}

.toc-item[href*="#section-"]:contains("💻")::before {
content: "💻";
}

    .toc-item.toc-header {
color: #2c3e50; 
font-weight: 600;
}
